tsec: fix link detection for the RTL8211B PHY
authorAnton Vorontsov <[email protected]>
Fri, 14 Mar 2008 20:20:30 +0000 (23:20 +0300)
committerKim Phillips <[email protected]>
Wed, 26 Mar 2008 00:16:48 +0000 (19:16 -0500)
commitc7604783b236e368f225efb7b3efb418fe20b404
treee4d998e18a74c97c598668d27e5e158159a6fb11
parent7fa9cbb00dc83fcf175042b6f20c2c9bce9a15f4
tsec: fix link detection for the RTL8211B PHY

RTL8211B sets link state register after autonegotiation complete,
so with bootdelay=0 RTL8211B will report lack of the link.

To fix this, we should wait for aneg to complete, even if the
link is currently down.

Signed-off-by: Anton Vorontsov <[email protected]>
Signed-off-by: Kim Phillips <[email protected]>
drivers/net/tsec.c